// import FastClick from 'fastclick';

// document.documentElement.style.fontSize = document.documentElement.clientWidth / 37.5 + 'px'; // 设置 rem

// window.addEventListener('load', function () {
//     FastClick.attach(document.body);
// }, false);

// document.documentElement.addEventListener('touchmove', function (e) {
//     if (e.touches.length > 1) e.preventDefault();
// }, false);

//按照宽度375图算， 1rem = 100px;
(function (win, doc) {
    function changeSize() {
        doc.documentElement.style.fontSize = doc.documentElement.clientWidth / 3.75 + 'px';
        // console.log(100 * doc.documentElement.clientWidht / 3.75)
    }
    changeSize();
    win.addEventListener('resize', changeSize, false);
})(window, document);